#include<stdio.h>
#pragma warning(disable : 4996)
void multiplication(int a) 
{
	for ( int i= 1; i<=a; i++)
	{
		for (int z = 1; z <= i; z++)
		{
			int num;
			num = i * z;
			printf("%dx%d=%d  ", i, z, num);
		}
		printf("\n");
	}
}
int main() {
	int x;
	scanf("%d", &x);
     multiplication(x);

	return 0;
}